package com.zisuyi.game.sdk.net.bean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class RedeemHistoryTest {

    /**
     * code : 200
     * data : [{"created_at":"string","email":"string","gift":{"amount":0,"conditions":[{"id":0,"key":"string","message":"string","value":"string"}],"currency":"string","diamond":0,"id":0,"symbol":"string","type":"string"},"id":0,"phone":"string","status_code":0}]
     * message : success
     */

    @SerializedName("code")
    private Integer code;
    @SerializedName("message")
    private String message;
    @SerializedName("data")
    private List<DataDTO> data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO {
        /**
         * created_at : string
         * email : string
         * gift : {"amount":0,"conditions":[{"id":0,"key":"string","message":"string","value":"string"}],"currency":"string","diamond":0,"id":0,"symbol":"string","type":"string"}
         * id : 0
         * phone : string
         * status_code : 0
         */

        @SerializedName("created_at")
        private String createdAt;
        @SerializedName("email")
        private String email;
        @SerializedName("gift")
        private GiftDTO gift;
        @SerializedName("id")
        private Integer id;
        @SerializedName("phone")
        private String phone;
        @SerializedName("status_code")
        private Integer statusCode;

        public String getCreatedAt() {
            return createdAt;
        }

        public void setCreatedAt(String createdAt) {
            this.createdAt = createdAt;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public GiftDTO getGift() {
            return gift;
        }

        public void setGift(GiftDTO gift) {
            this.gift = gift;
        }

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public Integer getStatusCode() {
            return statusCode;
        }

        public void setStatusCode(Integer statusCode) {
            this.statusCode = statusCode;
        }

        public static class GiftDTO {
            /**
             * amount : 0
             * conditions : [{"id":0,"key":"string","message":"string","value":"string"}]
             * currency : string
             * diamond : 0
             * id : 0
             * symbol : string
             * type : string
             */

            @SerializedName("amount")
            private Integer amount;
            @SerializedName("currency")
            private String currency;
            @SerializedName("diamond")
            private Integer diamond;
            @SerializedName("id")
            private Integer id;
            @SerializedName("symbol")
            private String symbol;
            @SerializedName("type")
            private String type;
            @SerializedName("conditions")
            private List<ConditionsDTO> conditions;

            public Integer getAmount() {
                return amount;
            }

            public void setAmount(Integer amount) {
                this.amount = amount;
            }

            public String getCurrency() {
                return currency;
            }

            public void setCurrency(String currency) {
                this.currency = currency;
            }

            public Integer getDiamond() {
                return diamond;
            }

            public void setDiamond(Integer diamond) {
                this.diamond = diamond;
            }

            public Integer getId() {
                return id;
            }

            public void setId(Integer id) {
                this.id = id;
            }

            public String getSymbol() {
                return symbol;
            }

            public void setSymbol(String symbol) {
                this.symbol = symbol;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public List<ConditionsDTO> getConditions() {
                return conditions;
            }

            public void setConditions(List<ConditionsDTO> conditions) {
                this.conditions = conditions;
            }

            public static class ConditionsDTO {
                /**
                 * id : 0
                 * key : string
                 * message : string
                 * value : string
                 */

                @SerializedName("id")
                private Integer id;
                @SerializedName("key")
                private String key;
                @SerializedName("message")
                private String message;
                @SerializedName("value")
                private String value;

                public Integer getId() {
                    return id;
                }

                public void setId(Integer id) {
                    this.id = id;
                }

                public String getKey() {
                    return key;
                }

                public void setKey(String key) {
                    this.key = key;
                }

                public String getMessage() {
                    return message;
                }

                public void setMessage(String message) {
                    this.message = message;
                }

                public String getValue() {
                    return value;
                }

                public void setValue(String value) {
                    this.value = value;
                }
            }
        }
    }
}
